window.addEventListener('message', function (event) {
  var data = event.data;
  // console.log("[contentScripts] " + JSON.stringify(data));
  chrome.runtime.sendMessage(data);
}, false);

var gameCanvas = document.getElementById("GameCanvas");
if (gameCanvas) {
	// let a = 'background: #606060; color: #fff; border-radius: 3px 0 0 3px;'
	// let b = 'background: #1475B2; color: #fff; border-radius: 0 3px 3px 0;'
	// console.log(`%c cc-devtools : %c Detected Cocos Creator Game  `, a, b)
} else {
  chrome.runtime.sendMessage({ type: 0, msg: "no creator game!" });
}